﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MainCamCtr : MonoBehaviour {

    Vector3 start_pos;

	void Start () {
        start_pos = transform.position;
    }
	
	void Update () {
        PackageData packageData = AppDataManager.Instance.GetCurrentPackageInfo();
        if (packageData != null)
        {
            PackageConfig packageConfig = packageData.packageConfig;
            transform.position = start_pos + new Vector3(packageConfig.camera_offsetX, packageConfig.camera_offsetY, 0);
        }
	}
}
